﻿var version = "20202.01.28"
function loadcss(url, islocal) {
    if (islocal) {
        url += "?version=" + version;
    }
    document.write('<link rel="stylesheet" href= ' + url + '></link>');
}
function loadjs(url, islocal) {
    if (islocal) {
        url += "?version=" + version;
    }
    document.write('<script src= ' + url + '></script>');
}

loadcss(getRootPath() + "lib/ztree/zTreeStyle/zTreeStyle.css", false)
loadcss(getRootPath() + "lib/zui/css/zui.css", false)
loadcss(getRootPath() + "lib/zui/lib/datetimepicker/datetimepicker.min.css", false)
loadcss(getRootPath() + "lib/zui/lib/chosen/chosen.min.css", false)
loadcss(getRootPath() + "lib/zui/lib/chosenicons/zui.chosenicons.min.css", false)

loadjs(getRootPath() + "lib/vue/vue.js", false)
loadjs(getRootPath() + "lib/moment/moment.min.js", false)
loadjs(getRootPath() + "lib/jquery/jquery.min.js", false)
loadjs(getRootPath() + "lib/mustache/mustache.min.js", false)
loadjs(getRootPath() + "lib/zui/js/zui.js", false)
loadjs(getRootPath() + "lib/jquerymeta/jquery.metadata.js", false)
loadjs(getRootPath() + "lib/jqueryvalidate/jquery.validate.min.js", false)
loadjs(getRootPath() + "lib/jqueryvalidate/jquery.validate.message_cn.js", false)
loadjs(getRootPath() + "lib/ztree/jquery.ztree.all.min.js", false)
loadjs(getRootPath() + "lib/zui/lib/datetimepicker/datetimepicker.min.js", false)
loadjs(getRootPath() + "lib/zui/lib/chosen/chosen.min.js", false)
loadjs(getRootPath() + "lib/zui/lib/chosenicons/zui.chosenicons.min.js", false)

loadcss(getRootPath() + "lib/clouddialog/dialog.css", true)
loadjs(getRootPath() + "lib/clouddialog/dialog.js", true)
loadcss(getRootPath() + "lib/cloudtable/table.css", true)
loadjs(getRootPath() + "lib/cloudtable/table.js", true)
loadjs(getRootPath() + "lib/cloudtree/tree.js", true)
loadcss(getRootPath() + "lib/cloudtree/tree.css", true)
loadjs(getRootPath() + "lib/cloudimport/import.js", true)
loadcss(getRootPath() + "lib/cloudimport/import.css", true)
loadcss(getRootPath() + "css/common.css", true)
loadjs(getRootPath() + "js/common.js", true)